package com.daoxiang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class SearchController {

    @GetMapping("/indexSearch")
    public ModelAndView indexSearch(String searchValue) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("searchValue", searchValue);
        modelAndView.setViewName("reception/search");
        return modelAndView;
    }
}
